<%@ page language="java" contentType="text/html; charset=UTF-8"
pageEncoding="UTF-8"%>

<%@page import="java.util.*,model.*,util.*,control.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link href="css/front.css" rel="stylesheet" type="text/css" />
<link href="css/frontstyle.css" rel="stylesheet" type="text/css" />
  <title>校社联_社团新闻管理</title>
  
  <script type="text/javascript" charset="utf-8" src="kindeditor-4.0.5/kindeditor.js"></script>
  
  </head>
  
  <body>
    

<div id="fronttop">
  <div class="fronttou">
    <img src="pictures/shidaxiaohui.jpg" width="149" height="105" />
    东北师范大学学生社团联合会
</div>
  <div id="fronttopnavigation">
    <table width="995" height="50" border="0" align="center">
      <tr>
        <td width="71"><div align="center" class="STYLE2" ><a href="index.jsp">首页</a></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="shetuanjieshao.jsp">社团介绍</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="darenxiu.jsp">达人秀</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="shetuanxinwen.jsp">社团新闻</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="sheliandongtai.jsp">社联动态</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="huodonggonggao.jsp">活动公告</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="gongtongguanzhu.jsp">共同关注</a></span></div></td>
        <td width="71"><div align="center" ><span  class="STYLE2"><a href="resources/resources_download.jsp">文件下载</a></span></div></td>
        <td width="71"><div align="center" class="STYLE2"><a href="woyaoliuyan.jsp">我要留言</a></div></td>
      </tr>
    </table>
  </div>
  <div id="fronttopflash"><img src="pictures/shida.jpg" width="994" height="260"></div>
</div>
<div id="frontlittlenavigation">
  <table width="990" height="34" border="0">
    <tr>
      <td width="984">&nbsp;&nbsp;&nbsp;&nbsp;当前位置：<a href="index.jsp">首页</a>&gt;&gt;社团管理&gt;&gt;列表 </td>
    </tr>
  </table>
</div>
<div id="frontarticle">
  <div id="frontarticlelefthot">
    <table width="236" height="226" border="0" cellpadding="0" cellspacing="0" bgcolor="#FFFFFF" class="cebianlan"	 >
      <tr >
        <td height="54"><div align="left" style="font-size:20px"  class="hengxian">当前用户：校社联</div></td>
      </tr>
      <tr>
        <td height="54"><div align="center" class="hengxian"><a href="xiaoshelian_xiaoxiguanli.jsp"><h3>消息管理</h3></a></div></td>
      </tr>
      <tr>
        <td height="54"><div align="center" class="hengxian"><a href="liuyanban_list2.jsp"><h3>留言板管理</h3></a></div></td>
      </tr>
      <tr>
        <td height="54"><div align="center" class="hengxian"><a href="resources/resources.jsp"><h3>文件管理</h3></a></div></td>
      </tr>
      <tr>
        <td height="54"><div align="center" class="hengxian"><a href="xiaoshelian_shetuanguanli.jsp"><h3>社团管理</h3></a></div></td>
      </tr>
       <tr>
        <td height="54"><div align="center" class="hengxian"><a href="xiaoshelian_qitahuodong.jsp"><h3>其他活动管理</h3></a></div></td>
      </tr>
    </table>
  </div>
  <div id="frontarticlemain" class="cebianlan">
    <table width="737" border="0" cellpadding="0" cellspacing="0" style="word-break:break-all">
       <tr>
        <td width="716" height="728"  align="left" valign="top" >
        <table width="711" border="1" cellpadding="2" cellspacing="2">&nbsp;
        <tr><h2>社团新闻列表</h2>
         <div style="font-size:20px;"><a href="shetuanxw_add.jsp">添加</a></div>
        </tr>
            <tr>
             <td width="50">序号</td>
              <td width="160" height="22" >社团新闻标题</td>
              <td width="150" valign="top">新闻时间</td>
              <td width="500" valign="top">新闻内容</td>
              <td width="50">操作</td>
              <td width="50">操作</td>
            </tr>
<%
        int k = 0;
		request.setCharacterEncoding("utf-8");
		int pages = ParamUtil.getInt(request, "pages", 1);
		int rowsPerPage = ParamUtil.getInt(request, "pageSize", 20);
		Shetuanxw shetuanxw = new Shetuanxw();
		ShetuanxwControl dc = new ShetuanxwControl();
		
		List<Shetuanxw>list = new ArrayList<Shetuanxw>();
		
		list = (List)dc.GetShetuanxw(pages, rowsPerPage);

		for(int i = 0; i<list.size();i++)
		{
			shetuanxw = list.get(i);
			k++;
 %>
		
   <tr>
     <td><%=k %></td>
	<td><%=shetuanxw.getDongxiaoxiName() %></td>
	<td><%=shetuanxw.getDongxiaoxiTime() %></td>
    <td><%=shetuanxw.getDongxiaoxiNeirong() %></td>
    <td  align = "center"><a href="shetuanxw_update.jsp?id=<%=shetuanxw.getDongxiaoxiId()%>">修改</a></td>
	<td  align = "center"><a href="shetuanxw_del.jsp?id=<%=shetuanxw.getDongxiaoxiId()%>">删除</a></td>
   </tr>
            <%
            }
             %>
         </table>
          <div align="center">
		<br>
<%
		out.println(ShetuanxwControl.pageInstance.getToolsMenu(pages));
%>
		<br>
		
</div>
             </td>
    </table>
  </div>
  <div id="apDiv1">

    <div id="frontcopyright">
      <div></div>
      <div>&nbsp;</div>
      <div>
        <div align="center"> 2012-2050 东北师范大学学生社团联合会</div>
      </div>
      <div> </div>
      <div>
        <div align="center">制作：杜娟 吴琼 张宇梁 张建颖 焦书海 张家鑫</div>
      </div>
      <div>&nbsp;</div>
      <div>&nbsp;</div>
    </div>
  </div>
</div>
    
  </body>
</html>
